﻿<controls:ChildWindow xmlns:ColoredControls="clr-namespace:ArgusControls.ThemeControls;assembly=ArgusControls" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:Controls="clr-namespace:ArgusControls;assembly=ArgusControls"
	x:Class="Fractals.CalculationProgressWindow"
           MinWidth="400"
           Title="{Binding Resource.CalculationProgressWindowTitle, Mode=OneWay, Source={StaticResource LocalizedStrings}}" HasCloseButton="False" Background="Black" Foreground="White">
	<StackPanel Margin="5">
		<Controls:ProgressBar x:Name="progressBar" Height="25" Margin="0" VerticalAlignment="Top" Grid.Row="0" Foreground="Black"/>
		<Grid VerticalAlignment="Top">
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
				<RowDefinition Height="Auto"/>
			</Grid.RowDefinitions>
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto"/>
				<ColumnDefinition Width="Auto"/>
				<ColumnDefinition/>
			</Grid.ColumnDefinitions>
			<TextBlock Grid.Row="0" Text="{Binding Resource.CalculationProgressWindowPixelsCalculating, Mode=OneWay, Source={StaticResource LocalizedStrings}}"/>
			<TextBlock x:Name="tbPixelsCalculating" Margin="5,0,0,0" Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right"/>
			<TextBlock Grid.Row="1" Text="{Binding Resource.CalculationProgressWindowPixelsCalculated, Mode=OneWay, Source={StaticResource LocalizedStrings}}"/>
			<TextBlock x:Name="tbPixelsCalculated" Margin="5,0,0,0" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Right"/>
			<TextBlock Grid.Row="2" Text="{Binding Resource.CalculationProgressWindowElapsedTime, Mode=OneWay, Source={StaticResource LocalizedStrings}}"/>
			<TextBlock x:Name="tbTimeElapsed" Margin="5,0,0,0" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right"/>
			<ColoredControls:ThemeButton x:Name="bCancel" Grid.Row="2" Grid.Column="2" Margin="5,0,0,0" Content="{Binding Resource.CalculationProgressWindowCancel, Mode=OneWay, Source={StaticResource LocalizedStrings}}" VerticalAlignment="Top" HorizontalAlignment="Right" IsEnabled="False" Click="bCancel_Click"/>
		</Grid>
	</StackPanel>
</controls:ChildWindow>